# -*- coding: utf-8 -*-

import os

config_path = os.path.abspath(os.path.dirname(__file__))

class Config:
    SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL","sqlite:///" + os.path.join(config_path,"twitter.db"))
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SECRET_KEY = 'abc123'
    TWEET_PER_PAGE = 20

    MAIL_DEFAULT_SENDER = '444107229@qq.com'
    MAIL_SERVER = 'smtp.qq.com'
    MAIL_PORT = 587
    MAIL_USE_TLS = 1
    MAIL_USERNAME = '444107229'
    MAIL_PASSWORD = 'xxgxgdpnsfuqcaji'
    MAIL_SUBJECT_RESET_PASSWORD = '[Twittor] Please Reset Your Password'